<?php $this->load->view('includes/head.php'); ?>

<div class="container">
  <div class="row">

    <div class="col-sm-offset-4 col-sm-5 top_2">
    

    <?php if ($valid): ?>
    <div class="alert alert-success alert-dismissible" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button><strong>Your Password Has Been Successfully Updated!</strong></div>
    <?php endif ?>

    <h3>Change Password</h3>

    <?php 
    echo form_open('/user/edit_my_account');
    $current_password = array('name' => 'current_password','id' => 'current_password','class' => 'form-control','placeholder'=> 'Current Password','maxlength' => '100', 'autofocus' => 'true');
    $new_password = array('name' => 'new_password','id' => 'new_password','class' => 'form-control','placeholder'=> 'New Password','maxlength' => '100');
    $confirm_password = array('name' => 'confirm_password','id' => 'confirm_password','class' => 'form-control','placeholder'=> 'Confirm Password','maxlength' => '100');
    $submit = array('class' => 'btn btn-info pull-right', 'value' => 'Update');
    ?>

    <div class="form-group reset">
      <?php echo form_password($current_password); ?>
      <?php echo form_error('current_password'); ?>
    </div>

    <div class="form-group reset">
      <?php echo form_password($new_password); ?>
      <?php echo form_error('new_password'); ?>
    </div>

    <div class="form-group reset">
      <?php echo form_password($confirm_password); ?>
    </div>

    <div class="form-group">
      <?php echo form_submit($submit); ?>
    </div>


    <?php echo form_close(); ?>


     



    </div>
  </div>
</div>